package com.booksystem.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * <p>
 *   设置库存预警阈值入参对象
 * </p>
 * @author 段伟豪
 */
@Data
@ApiModel(description = "设置库存预警阈值入参对象")
public class WarningThresholdUpdateDTO {

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空")
    @ApiModelProperty(value = "商品ID", required = true)
    private Long productId;

    /**
     * 预警阈值
     */
    @NotNull(message = "预警阈值不能为空")
    @ApiModelProperty(value = "预警阈值", required = true)
    private Integer warningThreshold;
}